// import useLoginStore from '@/store/modules/login'
import { createRouter, createWebHashHistory } from 'vue-router'

const router = createRouter({
  // history: createWebHistory(import.meta.env.BASE_URL),
  history: createWebHashHistory(),
  routes: [
    {
      path: '/',
      redirect: '/login'
    },
    {
      path: '/login',
      name: 'login',
      component: () => import('@/views/Login/login.vue')
    },
    {
      path: '/main',
      name: 'main',
      component: () => import('@/views/Mains/index.vue')
    },
    {
      path: '/qdnUomc',
      name: 'qdnUomc',
      component: () => import('@/views/DataConter/index.vue')
    },
    {
      path: '/wisdomPark',
      name: 'wisdomPark',
      component: () => import('@/views/WisdomPark/index.vue')
    },
    { path: '/:pathMatch(.*)*', name: 'NotFound', component: () => import('@/views/NotFound/NotFound.vue') }
  ]
})

router.beforeEach((to) => {
  
})

export default router
